﻿<script id="postItem" type="x-jquery-tmpl">
<div id="comment_${number}" style="color:#444499;font-size:11px;margin-right:${getCommentLevel(level)}px;">
    <div style="float:left;">נכתב בתאריך ${date} בשעה ${time}</div>
	{{html writer}} {{html writericon}}
</div>
<div style="color:#444499;font-size:11px;color:#000000;padding:2px;border:1px solid #444444;background-color:#ffffff;margin-bottom:15px;margin-right:${getCommentLevel(level)}px;">
    <span style="font-size:15px;font-weight:bold;">${title}</span><br/>
    <!--a onClick="document.getElementById('comment_${inreplyto}').scrollIntoView(false);"-->
    {{if inreplyto != ''}}
        <span style="font-size:12px;color:red;">בתגובה להודעה מספר ${inreplyto}</span>
    {{/if}}
    <!--/a-->
    <br/><br/>
    <div>
    {{html content}}
    </div>
    {{if $item.isPostLocked() == false}}
    <div style="text-align:left;">
        <a onClick="PagesScripts.post.setEditPost(event)">עריכה</a> |
        {{if number == 0 && $item.isMe() == true}}
        <a onClick="PagesScripts.post.setJumpPost(event)">הקפצה</a> | 
        {{/if}}
        <a onClick="PagesScripts.post.setCommentReplyNumber(event)">תגובה</a>
    </div>
    {{/if}}
</div>
</script>
<script type="text/javascript">
function getCommentLevel(level) {
    return level*15;
}
</script>